<template>
  <div class="header">
    <a href="#" v-show="goBack" @click="$router.go(-1)">
      <i class="iconfont icon-552cc14536532"></i>
    </a>
    <span>{{headTitle}}</span>
  </div>
</template>

<style>
  .header {
    position: fixed;
    width: 100%;
    -webkit-box-shadow: 0 0 10px #cecece;
    box-shadow: 0 0 10px #cecece;
    height: 1.3rem;
    line-height: 1.3rem;
    padding-left: 0.3rem;
    background: white;
    top: 0;
    z-index: 999;
  }

  .header span {
    display: block;
    float: left;
    height: 50px;
    font-size: 15px;
    color: #41a843;
  }
  .header i {
    display: block;
    float: left;
    height: 50px;
    font-size: 0.71rem;
    color: black;
  }
</style>
<script>
  export default {
    props: ["headTitle","goBack"],
    data() {
      return {}
    },
    methods: {}
  }
</script>
